package de.gwtprime.shared.requestFactory;

import java.util.Date;

import com.google.web.bindery.requestfactory.shared.EntityProxy;
import com.google.web.bindery.requestfactory.shared.ProxyFor;

import de.gwtprime.server.model.EntityLocator;
import de.gwtprime.server.model.Order;

@ProxyFor(value = Order.class, locator = EntityLocator.class)
public interface OrderProxy extends EntityProxy {

	public enum OrderType{BUY,SELL}
	public enum OrderState{OPEN,WAITING_FOR_PAYMENT, PAYMENT_TRIGGERED, COMPLETE, STORNIERT}
	public Long getId();
	void setUser(User2Proxy user);
	void setBuyer(User2Proxy user);
	void setSeller(User2Proxy user);
	public User2Proxy getUser();
	public User2Proxy getBuyer();
	public User2Proxy getSeller();
	public String getUserName();
	public Date getDate();
	public Double getPrice();
	public Double getAmount();
	public void setPrice(Double price);
	public void setAmount(Double amount);
	public void setType(OrderType type);
	
	public OrderType getType();
	public OrderState getState();
	public void setState(OrderState i);
	public Double getFee();
	public void setPrivateWithdrawAddress(String privateWithdrawAddress);
	public String getPrivateWithdrawAddress();
}
